package br.com.unifebe.tcc.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "VendaCancelamento")
public class VendaCancelamento implements Serializable{
  
	private static final long serialVersionUID = 1L;
	
	@Id
	@SequenceGenerator( name = "cd_venda_cancelamento", sequenceName = "VENDA_CANCELAMENTO_SEQ" )  
    @GeneratedValue( strategy = GenerationType.SEQUENCE, generator = "cd_venda_cancelamento" )  
	@Column(name = "cd_venda_cancelamento", nullable = false )
	private Long id;
	
	@Column(name = "ds_motivo")
	private String motivo;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getMotivo() {
		return motivo;
	}

	public void setMotivo(String motivo) {
		this.motivo = motivo;
	}
  
}
